package com.epam.cdp.selenium2.core.configuration;

import java.util.ArrayList;
import java.util.List;

import com.epam.cdp.selenium2.core.results.logger.Logger;

/**
 * Configuration of suites witch will be run.
 * 
 * @author yyudzitski
 */
public class TestngConfiguration
{
  private ArrayList<String> testngFiles;

  private ArrayList<String> includedGroups;

  private ArrayList<String> excludedGroups;

  public TestngConfiguration()
  {
    testngFiles = new ArrayList<String>();
    includedGroups = new ArrayList<String>();
    excludedGroups = new ArrayList<String>();
  }

  public void addFileToList( String filePath )
  {
    if( !testngFiles.contains( filePath ) )
    {
      testngFiles.add( filePath );
    }
    else
    {
      Logger.info( "File already in list: " + filePath );
    }
  }

  public List<String> getIncludedGroups()
  {
    return includedGroups;
  }

  public List<String> getExcludedGroups()
  {
    return excludedGroups;
  }

  public List<String> getTestngFiles()
  {
    return testngFiles;
  }

  public void setTestngFiles( ArrayList<String> testngFiles )
  {
    this.testngFiles = testngFiles;
  }
}